<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        let name = 'zhangsan'
        let age = 23
        let person1 = {
            name: 'zhangsan',
            age: 23
        }
        let person2 = {name: name, age: age}
        console.log(person2)
        let person3 = {name, age}
        console.log(person3)

    </script>
</body>
</html>